﻿using System;
using System.Collections.Generic;
using System.Text;

namespace BLL.PageConfig
{
    public class BannerConfig
    {
        /// <summary>
        /// 添加记录
        /// </summary>
        /// <param name="_obj"></param>
        /// <returns></returns>
        public static string Add(Model.PageConfig.BannerConfig _obj)
        {
            return (new SQLServerDAL.PageConfig.BannerConfig()).Add(_obj);
        }
        /// <summary>
        /// 更新信息
        /// </summary>
        /// <param name="_obj"></param>
        /// <returns></returns>
        public static string Update(Model.PageConfig.BannerConfig _obj)
        {
            return (new SQLServerDAL.PageConfig.BannerConfig()).Update(_obj);
        }
        /// <summary>
        /// 匹配ID初始化对象属性
        /// </summary>
        /// <param name="configid"></param>
        /// <returns></returns>
        public static Model.PageConfig.BannerConfig GetObjectById(string configid)
        {
            return (new SQLServerDAL.PageConfig.BannerConfig()).GetObjectById(configid);
        }
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="configid"></param>
        public static void Delete(string configid)
        {
            (new SQLServerDAL.PageConfig.BannerConfig()).Delete(configid);
        }
    }
}
